home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 March
/
CHIP Mart 1997.iso
/
SurfCam
/
SURFCAM.Z
/
UNCX01.F07
< prev
next >
Wrap
Text File
|
1996-04-01
|
3KB
|
49 lines
$$ 1/31/96 Set length to 0
$$ 1/31/96 Preceed tool changes with cancel codes
$$ 1/31/96 Set drilling depths to be from plunge clearance location
$$ 1/31/96 Reversed sign of drilling depths
$$ 1/31/96 Used an alias for Q to output the increment in the preck cycle
REDEF/ON $$ ALLOW VARIABLES TO BE OVERWRITTEN
CIMFIL/ON,LOADTL $$ TRAP LOADTL(TOOLCHANGE)
RSLT=POSTF(20) $$ SAVE RECORD ASIDE
SEQNO/ON $$ OUTPUT SEQUENCE NUMBERS
PREFUN/90,NEXT $$ ADD G80 NEXT TO...
PREFUN/80,NEXT $$ ADD G80 NEXT TO...
PREFUN/40,NEXT $$ G40 NEXT TO...
PREFUN/17,NEXT $$ G17 NEXT TO...
PREFUN/0, $$ G0
RSLT=POSTF(21) $$ RELOAD RECORD
RSLT=POSTF(10,6,0) $$ CHANGE THE LENGTH TO 0
RSLT=POSTF(13) $$ SEND RECORD TO POST
CIMFIL/OFF $$ END ROUTINE
CIMFIL/ON,CYCLE $$ TRAP LOADTL(TOOLCHANGE)
CTYP=POSTF(7,4) $$ ASSIGN THE CYCLE TYPE TO CTYP
CASE/CTYP $$ TEST FOR THE CYCLE TYPE
WHEN/ICODEF(DRILL) $$ CAPTURE THE DRILL CYCLE
DPTH=POSTF(7,6) $$ ASSIGN THE DEPTH TO DPTH
PCLR=POSTF(7,10) $$ ASSIGN THE PLUNGE CLEARANCE TO PCLR
CCLR=POSTF(7,12) $$ ASSIGN THE CLEARANCE TO CCLR
DPTH=(DPTH+PCLR) $$ REDEFINE DPTH BY ADDING PCLR
DPTH=(DPTH*-1) $$ REVERSE THE SIGN
RSLT=POSTF(10,6,DPTH) $$ OVERWRITE THE SCALAR IN THE RECORD
RSLT=POSTF(13) $$ SEND RECORD TO POST
POSTN/OUT,26,CCLR $$ INSERT A BLOCK BEFORE THE CYCLE
POSTN/OUT,26,PCLR $$ INSERT A BLOCK BEFORE THE CYCLE
WHEN/ICODEF(DEEP) $$ CAPTURE THE PECK DRILL CYCLE
PCLR=POSTF(7,12) $$ ASSIGN THE PLUNGE CLEARANCE TO PCLR
CCLR=POSTF(7,14) $$ ASSIGN THE CLEARANCE TO CCLR
DPTH=POSTF(7,6) $$ ASSIGN THE DEPTH TO DPTH
DPTH=(DPTH+PCLR) $$ REDEFINE DPTH BY ADDING PCLR
DPTH=(DPTH*-1) $$ REVERSE THE SIGN
RSLT=POSTF(10,6,DPTH) $$ OVERWRITE THE SCALAR IN THE RECORD
RSLT=POSTF(13) $$ SEND RECORD TO POST
POSTN/OUT,26,CCLR $$ INSERT A BLOCK BEFORE THE CYCLE
POSTN/OUT,26,PCLR $$ INSERT A BLOCK BEFORE THE CYCLE
WHEN/OTHERS $$ IF THE CYCLE TYPE IS NOT DRILL,PECK..
RSLT=POSTF(13) $$ SEND RECORD TO POST
ENDCAS $$ END TEST
CIMFIL/OFF $$ END ROUTINE